﻿using XLZF.MicroServices.Models;

namespace XLZF.MicroServices.IRepository;

public interface IClothingClassDictRepository
{
    /// <summary>
    /// 添加
    /// </summary>
    /// <param name="model"></param>
    /// <returns></returns>
    Task<int> Add(Clothing_Class_Dict model);

    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="model"></param>
    /// <returns></returns>
    int Del(Clothing_Class_Dict model);

    /// <summary>
    /// 改
    /// </summary>
    /// <param name="model"></param>
    /// <returns></returns>
    int Edit(Clothing_Class_Dict model);

    /// <summary>
    /// 查
    /// </summary>
    /// <returns></returns>
    List<Clothing_Class_Dict> GetLists();

    /// <summary>
    /// 查
    /// </summary>
    /// <param name="BrandID"></param>
    /// <returns></returns>
    Clothing_Class_Dict Get(string ID);

    /// <summary>
    /// 条件查询
    /// </summary>
    /// <param name="name">姓名</param>
    /// <param name="isAsc">是否正序</param>
    /// <param name="pageIndex">页码</param>
    /// <param name="pageSize">每页大小</param>
    /// <returns></returns>
    Page<Clothing_Class_Dict> GetPageData(string name, bool isAsc, int pageIndex, int pageSize);
}
